package com.retail.system.entity.po;

import com.retail.core.entity.CommonEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author administrator
 * @since 2019-05-25
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AdminPo extends CommonEntity {
    private String username;
    private String pass;
    private String phone;
    private String email;
    private Integer statusFlag;
    private Long deptId;
    private String openId;
    private Long adminLevel;
    // 审核状态 注册默认 0 待审核 1 审核通过 -1 审核拒绝
    private Integer auditStatus;
    private String auditStatusName;
    // 姓名
    private String name;

    // 头像地址
    private String url;
    // 父用户
    private Long parentId;

    @ApiModelProperty("推广码")
    private String promoCode;

    @ApiModelProperty("推广码链接地址")
    private String promoCodeUrl;

    @ApiModelProperty("用户类型 0-系统管理员 1-区域合伙人 2-商户")
    private Integer userType;

    private String sex;

    private Integer ownerShopCount;
    private Integer groupShopCount;
    private Date ownerShopLastTime;

    // 普通代理的晋升等级
    private Long upgradePreLevel;
    private Long upgradeLevel;
    private String upgradeTime;

    @ApiModelProperty("归属城市")
    private String city;

}
